home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / fun / swllog10.sit / SWL Log 1.0 / background_2209.xml < prev    next >
Encoding:
Extensible Markup Language  |  1991-03-19  |  17.3 KB  |  390 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2209</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_2997.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <true /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3183.css" />
  11.     <part>
  12.         <id>1410</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>480</left>
  23.             <top>318</top>
  24.             <right>512</right>
  25.             <bottom>342</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <showName> <false /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <true /> </autoHighlight>
  31.         <sharedHighlight> <false /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>14953</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>go back</name>
  40.         <script>on mouseUp
  41. global activebutton
  42. lock screen
  43.  
  44. put "M" & activebutton into name
  45. put cd field name into value
  46. if value is empty then
  47. put the name of this card into foo
  48. pop card
  49. if the name of this card is foo then
  50. go to first card of background "Frequencies"
  51. end if
  52. else
  53. put the name of this card into foo
  54. pop card into hold
  55. put "F" & the first item of value into cardname
  56. go to card cardname of background "Frequencies"
  57. if the name of this card is foo then
  58. go to first card of background "Frequencies"
  59. end if
  60. end if
  61. unlock screen with dissolve
  62. end mouseUp</script>
  63.     </part>
  64.     <part>
  65.         <id>1411</id>
  66.         <type>field</type>
  67.         <visible> <true /> </visible>
  68.         <dontWrap> <false /> </dontWrap>
  69.         <dontSearch> <false /> </dontSearch>
  70.         <sharedText> <false /> </sharedText>
  71.         <fixedLineHeight> <false /> </fixedLineHeight>
  72.         <autoTab> <false /> </autoTab>
  73.         <lockText> <false /> </lockText>
  74.         <rect>
  75.             <left>95</left>
  76.             <top>323</top>
  77.             <right>174</right>
  78.             <bottom>339</bottom>
  79.         </rect>
  80.         <style>transparent</style>
  81.         <autoSelect> <false /> </autoSelect>
  82.         <showLines> <false /> </showLines>
  83.         <wideMargins> <false /> </wideMargins>
  84.         <multipleLines> <false /> </multipleLines>
  85.         <reservedFamily> 0 </reservedFamily>
  86.         <titleWidth>0</titleWidth>
  87.         <icon>0</icon>
  88.         <textAlign>center</textAlign>
  89.         <font>Geneva</font>
  90.         <textSize>9</textSize>
  91.         <textStyle>plain</textStyle>
  92.         <textHeight>12</textHeight>
  93.         <name>memory</name>
  94.         <script></script>
  95.     </part>
  96.     <part>
  97.         <id>1412</id>
  98.         <type>field</type>
  99.         <visible> <false /> </visible>
  100.         <dontWrap> <false /> </dontWrap>
  101.         <dontSearch> <false /> </dontSearch>
  102.         <sharedText> <false /> </sharedText>
  103.         <fixedLineHeight> <false /> </fixedLineHeight>
  104.         <autoTab> <false /> </autoTab>
  105.         <lockText> <false /> </lockText>
  106.         <rect>
  107.             <left>0</left>
  108.             <top>0</top>
  109.             <right>82</right>
  110.             <bottom>17</bottom>
  111.         </rect>
  112.         <style>rectangle</style>
  113.         <autoSelect> <false /> </autoSelect>
  114.         <showLines> <false /> </showLines>
  115.         <wideMargins> <false /> </wideMargins>
  116.         <multipleLines> <false /> </multipleLines>
  117.         <reservedFamily> 0 </reservedFamily>
  118.         <titleWidth>0</titleWidth>
  119.         <icon>0</icon>
  120.         <textAlign>left</textAlign>
  121.         <font>Geneva</font>
  122.         <textSize>9</textSize>
  123.         <textStyle>plain</textStyle>
  124.         <textHeight>12</textHeight>
  125.         <name>cardofcards</name>
  126.         <script></script>
  127.     </part>
  128.     <part>
  129.         <id>1414</id>
  130.         <type>button</type>
  131.         <visible> <true /> </visible>
  132.         <reserved5> 0 </reserved5>
  133.         <reserved4> 0 </reserved4>
  134.         <reserved3> 0 </reserved3>
  135.         <reserved2> 0 </reserved2>
  136.         <reserved1> 0 </reserved1>
  137.         <enabled> <true /> </enabled>
  138.         <rect>
  139.             <left>373</left>
  140.             <top>324</top>
  141.             <right>420</right>
  142.             <bottom>342</bottom>
  143.         </rect>
  144.         <style>roundrect</style>
  145.         <showName> <true /> </showName>
  146.         <highlight> <false /> </highlight>
  147.         <autoHighlight> <false /> </autoHighlight>
  148.         <sharedHighlight> <true /> </sharedHighlight>
  149.         <family>0</family>
  150.         <titleWidth>0</titleWidth>
  151.         <icon>0</icon>
  152.         <textAlign>center</textAlign>
  153.         <font>Geneva</font>
  154.         <textSize>9</textSize>
  155.         <textStyle>plain</textStyle>
  156.         <name>Load</name>
  157.         <script>on mouseUp
  158. global activebutton
  159.  
  160. repeat with i = 0 to 99
  161. put "M" & i into foo
  162. if card field foo is bkgnd field memory then
  163. put "Frequency is already assigned to memory " & i into foo2
  164. answer foo2 with "OK"
  165. exit mouseUp
  166. end if
  167. end repeat
  168. put "M" & activebutton into foo2
  169. put card field foo2 into foo
  170. lock screen
  171. if foo is not empty then
  172. answer "Chosen memory is already full. Override?"┬¼
  173. with "OK" or "Cancel"
  174. if it is "Cancel" then exit mouseUp
  175. deletefreq (activebutton)
  176. clearmem (activebutton)
  177. end if
  178. addfreq(activebutton)
  179. put bg field "memory" into foo
  180. put item 2 of foo into foo2
  181. if char 1 of foo2 is " " then delete char 1 of foo2
  182. setmem activebutton, item 1 of foo, foo2
  183. end mouseUp
  184. </script>
  185.     </part>
  186.     <part>
  187.         <id>1415</id>
  188.         <type>button</type>
  189.         <visible> <true /> </visible>
  190.         <reserved5> 0 </reserved5>
  191.         <reserved4> 0 </reserved4>
  192.         <reserved3> 0 </reserved3>
  193.         <reserved2> 0 </reserved2>
  194.         <reserved1> 0 </reserved1>
  195.         <enabled> <true /> </enabled>
  196.         <rect>
  197.             <left>420</left>
  198.             <top>324</top>
  199.             <right>470</right>
  200.             <bottom>342</bottom>
  201.         </rect>
  202.         <style>roundrect</style>
  203.         <showName> <true /> </showName>
  204.         <highlight> <false /> </highlight>
  205.         <autoHighlight> <false /> </autoHighlight>
  206.         <sharedHighlight> <true /> </sharedHighlight>
  207.         <family>0</family>
  208.         <titleWidth>0</titleWidth>
  209.         <icon>0</icon>
  210.         <textAlign>center</textAlign>
  211.         <font>Geneva</font>
  212.         <textSize>9</textSize>
  213.         <textStyle>plain</textStyle>
  214.         <name>Delete</name>
  215.         <script>on mouseUp
  216. global activebutton
  217.  
  218. put "M" & activebutton into foo2
  219. put card field foo2 into foo
  220. if foo is empty then
  221. answer "Chosen activebutton is already empty" with "OK"
  222. exit mouseUp
  223. end if
  224. set lockscreen to true
  225. deletefreq (activebutton)
  226. clearmem activebutton
  227. end mouseUp
  228. </script>
  229.     </part>
  230.     <part>
  231.         <id>1418</id>
  232.         <type>field</type>
  233.         <visible> <false /> </visible>
  234.         <dontWrap> <false /> </dontWrap>
  235.         <dontSearch> <false /> </dontSearch>
  236.         <sharedText> <false /> </sharedText>
  237.         <fixedLineHeight> <false /> </fixedLineHeight>
  238.         <autoTab> <false /> </autoTab>
  239.         <lockText> <false /> </lockText>
  240.         <rect>
  241.             <left>0</left>
  242.             <top>0</top>
  243.             <right>45</right>
  244.             <bottom>15</bottom>
  245.         </rect>
  246.         <style>rectangle</style>
  247.         <autoSelect> <false /> </autoSelect>
  248.         <showLines> <false /> </showLines>
  249.         <wideMargins> <false /> </wideMargins>
  250.         <multipleLines> <false /> </multipleLines>
  251.         <reservedFamily> 0 </reservedFamily>
  252.         <titleWidth>0</titleWidth>
  253.         <icon>0</icon>
  254.         <textAlign>left</textAlign>
  255.         <font>Geneva</font>
  256.         <textSize>9</textSize>
  257.         <textStyle>plain</textStyle>
  258.         <textHeight>12</textHeight>
  259.         <name>sort order</name>
  260.         <script></script>
  261.     </part>
  262.     <part>
  263.         <id>1419</id>
  264.         <type>button</type>
  265.         <visible> <true /> </visible>
  266.         <reserved5> 0 </reserved5>
  267.         <reserved4> 0 </reserved4>
  268.         <reserved3> 0 </reserved3>
  269.         <reserved2> 0 </reserved2>
  270.         <reserved1> 0 </reserved1>
  271.         <enabled> <true /> </enabled>
  272.         <rect>
  273.             <left>372</left>
  274.             <top>305</top>
  275.             <right>470</right>
  276.             <bottom>324</bottom>
  277.         </rect>
  278.         <style>roundrect</style>
  279.         <showName> <true /> </showName>
  280.         <highlight> <false /> </highlight>
  281.         <autoHighlight> <false /> </autoHighlight>
  282.         <sharedHighlight> <true /> </sharedHighlight>
  283.         <family>0</family>
  284.         <titleWidth>0</titleWidth>
  285.         <icon>0</icon>
  286.         <textAlign>center</textAlign>
  287.         <font>Geneva</font>
  288.         <textSize>9</textSize>
  289.         <textStyle>plain</textStyle>
  290.         <name>Get Memories</name>
  291.         <script>on mouseUp
  292. set lockscreen to true
  293. put bg field "memory" into holdit
  294. repeat with i = 0 to 99
  295. set cursor to busy
  296. put "M" & i into name
  297. put empty into cd field name
  298. end repeat
  299.  
  300. push card
  301. go to first card of bg "Frequencies"
  302. repeat for the number of cards of background "Frequencies"
  303. put empty into bg field "memory"
  304. go to next card
  305. end repeat
  306. pop card
  307.  
  308. repeat with i = 0 to 99
  309. set cursor to busy
  310. put getmem(i) into line
  311. put line into bg field "memory"
  312. put "M" & i into name
  313. if line is not empty then
  314. if  addfreq2(i) = false then
  315. set the textStyle of cd field name to italic
  316. else
  317. set the textStyle of cd field name to plain
  318. end if
  319. end if
  320. end repeat
  321. put holdit into bg field "memory"
  322. set lockscreen to false
  323. end mouseUp
  324. </script>
  325.     </part>
  326.     <part>
  327.         <id>1422</id>
  328.         <type>button</type>
  329.         <visible> <true /> </visible>
  330.         <reserved5> 0 </reserved5>
  331.         <reserved4> 0 </reserved4>
  332.         <reserved3> 0 </reserved3>
  333.         <reserved2> 0 </reserved2>
  334.         <reserved1> 0 </reserved1>
  335.         <enabled> <true /> </enabled>
  336.         <rect>
  337.             <left>230</left>
  338.             <top>315</top>
  339.             <right>273</right>
  340.             <bottom>334</bottom>
  341.         </rect>
  342.         <style>roundrect</style>
  343.         <showName> <true /> </showName>
  344.         <highlight> <false /> </highlight>
  345.         <autoHighlight> <false /> </autoHighlight>
  346.         <sharedHighlight> <true /> </sharedHighlight>
  347.         <family>0</family>
  348.         <titleWidth>0</titleWidth>
  349.         <icon>0</icon>
  350.         <textAlign>center</textAlign>
  351.         <font>Geneva</font>
  352.         <textSize>9</textSize>
  353.         <textStyle>plain</textStyle>
  354.         <name>Memory</name>
  355.         <script>on mouseUp
  356. vfoselect mem
  357. end mouseUp</script>
  358.     </part>
  359.     <part>
  360.         <id>1425</id>
  361.         <type>button</type>
  362.         <visible> <true /> </visible>
  363.         <reserved5> 0 </reserved5>
  364.         <reserved4> 0 </reserved4>
  365.         <reserved3> 0 </reserved3>
  366.         <reserved2> 0 </reserved2>
  367.         <reserved1> 0 </reserved1>
  368.         <enabled> <true /> </enabled>
  369.         <rect>
  370.             <left>184</left>
  371.             <top>323</top>
  372.             <right>227</right>
  373.             <bottom>342</bottom>
  374.         </rect>
  375.         <style>roundrect</style>
  376.         <showName> <true /> </showName>
  377.         <highlight> <false /> </highlight>
  378.         <autoHighlight> <false /> </autoHighlight>
  379.         <sharedHighlight> <true /> </sharedHighlight>
  380.         <family>0</family>
  381.         <titleWidth>0</titleWidth>
  382.         <icon>0</icon>
  383.         <textAlign>center</textAlign>
  384.         <font>Geneva</font>
  385.         <textSize>9</textSize>
  386.         <textStyle>plain</textStyle>
  387.         <name>scan off</name>
  388.         <script>on mouseUp
  389. setscan off
  390. end mouseUp</script>
  391.     </part>
  392.     <part>
  393.         <id>1426</id>
  394.         <type>button</type>
  395.         <visible> <true /> </visible>
  396.         <reserved5> 0 </reserved5>
  397.         <reserved4> 0 </reserved4>
  398.         <reserved3> 0 </reserved3>
  399.         <reserved2> 0 </reserved2>
  400.         <reserved1> 0 </reserved1>
  401.         <enabled> <true /> </enabled>
  402.         <rect>
  403.             <left>183</left>
  404.             <top>304</top>
  405.             <right>226</right>
  406.             <bottom>323</bottom>
  407.         </rect>
  408.         <style>roundrect</style>
  409.         <showName> <true /> </showName>
  410.         <highlight> <false /> </highlight>
  411.         <autoHighlight> <false /> </autoHighlight>
  412.         <sharedHighlight> <true /> </sharedHighlight>
  413.         <family>0</family>
  414.         <titleWidth>0</titleWidth>
  415.         <icon>0</icon>
  416.         <textAlign>center</textAlign>
  417.         <font>Geneva</font>
  418.         <textSize>9</textSize>
  419.         <textStyle>plain</textStyle>
  420.         <name>Scan on</name>
  421.         <script>on mouseUp
  422. setscan on
  423. end mouseUp</script>
  424.     </part>
  425.     <part>
  426.         <id>1427</id>
  427.         <type>field</type>
  428.         <visible> <true /> </visible>
  429.         <dontWrap> <false /> </dontWrap>
  430.         <dontSearch> <false /> </dontSearch>
  431.         <sharedText> <false /> </sharedText>
  432.         <fixedLineHeight> <false /> </fixedLineHeight>
  433.         <autoTab> <false /> </autoTab>
  434.         <lockText> <false /> </lockText>
  435.         <rect>
  436.             <left>95</left>
  437.             <top>309</top>
  438.             <right>174</right>
  439.             <bottom>325</bottom>
  440.         </rect>
  441.         <style>transparent</style>
  442.         <autoSelect> <false /> </autoSelect>
  443.         <showLines> <false /> </showLines>
  444.         <wideMargins> <false /> </wideMargins>
  445.         <multipleLines> <false /> </multipleLines>
  446.         <reservedFamily> 0 </reservedFamily>
  447.         <titleWidth>0</titleWidth>
  448.         <icon>0</icon>
  449.         <textAlign>center</textAlign>
  450.         <font>Geneva</font>
  451.         <textSize>9</textSize>
  452.         <textStyle>plain</textStyle>
  453.         <textHeight>12</textHeight>
  454.         <name>memnum</name>
  455.         <script></script>
  456.     </part>
  457.     <part>
  458.         <id>1429</id>
  459.         <type>button</type>
  460.         <visible> <true /> </visible>
  461.         <reserved5> 0 </reserved5>
  462.         <reserved4> 0 </reserved4>
  463.         <reserved3> 0 </reserved3>
  464.         <reserved2> 0 </reserved2>
  465.         <reserved1> 0 </reserved1>
  466.         <enabled> <true /> </enabled>
  467.         <rect>
  468.             <left>323</left>
  469.             <top>315</top>
  470.             <right>366</right>
  471.             <bottom>334</bottom>
  472.         </rect>
  473.         <style>roundrect</style>
  474.         <showName> <true /> </showName>
  475.         <highlight> <false /> </highlight>
  476.         <autoHighlight> <false /> </autoHighlight>
  477.         <sharedHighlight> <true /> </sharedHighlight>
  478.         <family>0</family>
  479.         <titleWidth>0</titleWidth>
  480.         <icon>0</icon>
  481.         <textAlign>center</textAlign>
  482.         <font>Geneva</font>
  483.         <textSize>9</textSize>
  484.         <textStyle>plain</textStyle>
  485.         <name>Move</name>
  486.         <script>on mouseUp
  487. ask "memory to move?"
  488. put it into oldmem
  489. if it is empty then exit mouseup
  490. if it < 0 or it > 100 then
  491. answer "not a legal memory" with "OK"
  492. exit mouseUp
  493. end if
  494. put "M" & oldmem into oldname
  495. if cd field oldname is empty then
  496. answer "this memory is empty" with "OK"
  497. exit mouseUp
  498. end if
  499.  
  500. ask "move to memory?"
  501. put it into newmem
  502. if it is empty then exit mouseup
  503. if it < 0 or it > 100 then
  504. answer "not a legal memory" with "OK"
  505. exit mouseUp
  506. end if
  507. if oldmem = newmem then
  508. answer "source and destination are the same" with OK
  509. exit mouseUp
  510. end if
  511.  
  512. put "M" & newmem into newname
  513. if cd field newname is not empty then
  514. answer "This memory is not empty -- override?" with OK or Cancel
  515. if it is "cancel" then exit mouseUp
  516. deletefreq newmem
  517. clearmem newmem
  518. end if
  519.  
  520. set lockscreen to true
  521. put background field "memory" into hold
  522. put cd field oldname into background field "memory"
  523. deletefreq oldmem
  524. clearmem oldmem
  525. addfreq newmem
  526. put item 2 of bg field "memory" into foo2
  527. if char 1 of foo2 is " " then delete char 1 of foo2
  528. setmem newmem, item 1 of bg field "memory", foo2
  529. put hold into background field "memory"
  530.  
  531. end mouseUp</script>
  532.     </part>
  533.     <name>Memories</name>
  534.     <script>on addfreq memory
  535. if addfreq2(memory) = false then
  536. answer "frequency not set in freq lists" with "OK"
  537. end if
  538. end addfreq
  539.  
  540. function addfreq2 memory
  541. set cursor to busy
  542. set lockscreen to true
  543. put bkgnd field "memory" into mem
  544. put offset (",", mem) into delim
  545. subtract 1 from delim
  546. put char 1 to delim of mem into freq
  547. put "M" & memory into foo
  548. put mem into card field foo
  549. push card
  550. put 1 into loop
  551. put 0 into found
  552. repeat until loop = 0
  553. find whole freq in bkgnd field "frequency"
  554. if the result is "not found" then
  555. put 0 into loop
  556. else
  557. if bkgnd field "memory" is memory then
  558. put 0 into loop
  559. else
  560. put memory into bkgnd field "memory"
  561. put 1 into found
  562. end if
  563. end if
  564. end repeat
  565. if found is 0 then
  566. return false
  567. end if
  568. pop card
  569. set lockscreen to false
  570. return true
  571. end addfreq2
  572.  
  573. on deletefreq memory
  574. set cursor to busy
  575. -- set lockscreen to true
  576. push card
  577. put 1 into loop
  578. put 0 into found
  579. put bkgnd field "memory" into mem
  580. put offset (",", mem) into delim
  581. subtract 1 from delim
  582. put char 1 to delim of mem into freq
  583. repeat until loop = 0
  584. find whole freq in bkgnd field "frequency"
  585. if the result is "not found" then
  586. put 0 into loop
  587. else
  588. if bg field "memory" is empty then
  589. put 0 into loop
  590. else
  591. put empty into bkgnd field "memory"
  592. put 1 into found
  593. end if
  594. end if
  595. end repeat
  596. if found is 0 then
  597. answer "memory not set in freq lists" with "OK"
  598. end if
  599. pop card
  600. put "M" & memory into foo
  601. put empty into card field foo
  602. set lockscreen to false
  603. end deletefreq
  604.  
  605. on radbuttonsoff
  606. global activebutton
  607.  
  608. if activebutton = empty then
  609. repeat with i = 0 to 99
  610. put "M" & i into foo
  611. set the highlight of cd button foo to false
  612. end repeat
  613. else
  614. put "M" & activebutton into name
  615. if the highlight of cd button name is true then
  616. set the highlight of cd button name to false
  617. else
  618. repeat with i = 0 to 99
  619. put "M" & i into foo
  620. set the highlight of cd button foo to false
  621. end repeat
  622. end if
  623. end if
  624. end radbuttonsoff
  625.  
  626. on mouseDown
  627. global activebutton
  628. set cursor to watch
  629.  
  630. put the name of target into foo
  631. if word 2 of foo is "button" then
  632. put word three of foo into name
  633. delete first char of name
  634. delete first char of name
  635. delete last char of name
  636.  
  637. if name >= 0 and name <= 99 then
  638. radbuttonsoff
  639. put "M" & name into butname
  640. set the hilight of cd button butname to true
  641. put name into activebutton
  642. put name into bg field "memnum"
  643. else
  644. pass mouseDown
  645. end if
  646. else if word 2 of foo is "field" then
  647. put word three of foo into name
  648. delete first char of name
  649. delete last char of name
  650. if cd field name Γëá empty then
  651. delete first char of name
  652. VFOSelect mem
  653. choosemem name
  654. put name into activebutton
  655. radbuttonsoff
  656. put "M" & activebutton into foo
  657. set the highlight of cd button foo to true
  658. put activebutton into bg field memnum
  659. end if
  660. else
  661. pass mouseDown
  662. end if
  663. end mousedown
  664.  
  665.  
  666. -- must be run while in the foreground
  667.  
  668. -- on makefields
  669. -- repeat with j = 1 to 5
  670. -- repeat with i = 1 to 20
  671. -- set cursor to busy
  672. -- domenu "new button"
  673. -- set the style of last card button to radioButton
  674. -- set the showname of last card button to false
  675. -- set the name of last card button to "M" & i + (j-1)*20 - 1
  676. -- set the textFont of last card button to Geneva
  677. -- set the textSize of last card button to 9
  678. -- set the rect of last card button to ┬¼
  679. -- 2 + ((j-1) * 92), (i*15) - 12, 22 + ((j-1) * 92), 2 + (i*15)
  680. -- -- domenu "new field"
  681. -- -- set the name of last card field to i  + (j-1)*20 - 1
  682. -- -- set the textFont of last card field to geneva
  683. -- -- set the textSize of last card field to 9
  684. -- -- set the rect of last card field  to ┬¼
  685. -- -- 24 + ((j-1) * 92), (i*15) - 12, 89 + ((j-1) * 92), 2 + (i*15)
  686. -- end repeat
  687. -- end repeat
  688. -- end makefields
  689.  
  690. -- on zap
  691. -- -- repeat with i = 1 to the number of background fields
  692. -- -- set cursor to busy
  693. -- -- set the visible of last card field to true
  694. -- -- select last card field
  695. -- -- domenu "Clear Field"
  696. -- -- end repeat
  697. -- repeat with i = 1 to the number of cd buttons
  698. -- set cursor to busy
  699. -- set the visible of last card button to true
  700. -- select last card button
  701. -- domenu "clear button"
  702. -- end repeat
  703. -- end zap
  704.  
  705. </script>
  706. </background>
  707.